import 'package:flutter/material.dart';

import 'tap_box.dart';

class TapBoxPage extends StatelessWidget {
  const TapBoxPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text("状态管理"),
        leading: IconButton(
          icon: const Icon(Icons.arrow_back),
          onPressed: () => Navigator.of(context).pushNamed("/chapter2"),
        ),
      ),
      body: Column(
        mainAxisAlignment: MainAxisAlignment.spaceEvenly,
        children: const [
          TapboxA(),
          ParentWidget(),
          ParentWidgetC(),
        ],
      ),
    );
  }
}
